-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unify Hover-Behavior Between Light and Dark Theme #1645
Conversation
I think this also helps a lot for user that have the "Hide icon" setting on the "Appearance" preference page (#1071) turned on. |
Test Results 917 files ±0 917 suites ±0 36m 53s ⏱️ - 1m 36s For more details on these failures, see this check. Results for commit 271ef9c. ± Comparison against base commit 1472375. ♻️ This comment has been updated with latest results. |
@HeikoKlare and @thomasritter: What do you think? |
I changed all of them, but none had any effect on the hover behavior. Probaby the hover behavior is simply the default behavior of the OS widget. But I now found why your proposal "breaks" behavior on Windows: the highlight color you chose is exactly the same as the background color of a tab folder that has focus. You can see that in the following screenshot: in both cases, I hover over the "Declaration" tab. The tab folder at the top has focus, while the one at the bottom has not. Using the background color for active rather than inactive tabs would fix that. That is actually the color that Windows already uses by default, so it would change nothing on Windows compared to existing behavior. |
I tested on Windows and Linux and both look good now 👍 That means: the patch does not change any behavior for these systems, as both Win32 and GTK seem to have the hover highlighting behavior as default. Just one thing I found when taking another look at the CSS configurations: usually there are color keys "start" and "end", probably in case the theme defines some gradient? E.g.
Maybe the added configuration should also consider that, even though gradients are rather uncommon now? |
I also thought about the gradient and explicitly opted against it. It's uncommon in todays UIs. Should we merge this as is? |
Comment to the same start and end gradient colour: IIRC the CSS engine only supported gradients hence to remove it I had to set both to the same value. It would better if the css API supports a single colour as we could simplify our CSS files but I never found the time to investigate/ implement this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my side, this is ready to merge.
Why is the CI build failing now? |
Build is failing because of This is an SWT issue (I will inspect if that's covered by one of the issues processed today). |
Thanks for looking into it. |
the property 'swt-unselected-hot-tab-color-background' doesn't support gradients but only a single color
|
I've reported #1654 |
Thanks. |
In the "Dark" theme the background color of unselected tabs in CTabFolders changes color when user hovers over them with the mouse cursor. This helps a lot to see where an inactive tab starts and ends. This change adds the same behavior also for the light theme.
Add new and noteworthy entry for: eclipse-platform/eclipse.platform.ui#1645
Add new and noteworthy entry for: eclipse-platform/eclipse.platform.ui#1645
In the "Dark" theme the background color of unselected tabs in CTabFolders changes color when user hovers over them with the mouse cursor. This helps a lot to see where an inactive tab starts and ends.
This change adds the same behavior also for the light theme.